package com.afkt.project.ui.widget.stickyheaders.model;


import com.afkt.project.ui.widget.stickyheaders.ultimateprovider.Model;
import com.afkt.project.ui.widget.stickyheaders.viewholder.ItemViewHolder;
import com.ohos.afkt.ResourceTable;

public class ItemModel implements Model {
    public String title;
    public String message;
    public int[] paddings = new int[]{0, 0, 0, 0};

    public ItemModel(String title, String message) {
        this.title = title;
        this.message = message;
    }

    public String getTitle() {
        return title;
    }

    public String getMessage() {
        return message;
    }

    public int[] getPaddings() {
        return paddings;
    }

    public void setPaddings(int[] paddings) {
        this.paddings = paddings;
    }

    public boolean isHeader() {
        return false;
    }

    @Override
    public int getResource(int position) {
        return ResourceTable.Layout_item_view;
    }

    @Override
    public Class getHolderClass(int position) {
        return ItemViewHolder.class;
    }
}
